﻿@model IEnumerable<Rehabilitation.Models.TestDetail>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.TestID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TestSequence)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SpO2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HR)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Oxygen)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Rest)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.BORG)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Comments)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TestID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TestSequence)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SpO2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HR)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Oxygen)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Rest)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BORG)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Comments)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.TestDetailID }) |
            @Html.ActionLink("Details", "Details", new { id=item.TestDetailID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.TestDetailID })
        </td>
    </tr>
}

</table>
